package router

import (
	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/net/ghttp"
	"github.com/gogf/gfer/app/api/user"
	"github.com/gogf/gfer/app/service/middleware"
)

func init() {
	g.Server().Group("/user", func(group *ghttp.RouterGroup) {
		c := new(user.C)
		group.Middleware(middleware.View)
		group.ALL("/", c)
		group.Group("/", func(group *ghttp.RouterGroup) {
			group.Middleware(middleware.Auth)
			//group.ALL("/save-profile", c.SaveProfile)
		})
	})
}
